let studentDao = require("../dao/studentDao");

//分页显示
//let data1 = studentDao.getStudentsByPage({"currentPage":2,"pageSize":2});
//data1.then(data1=>console.log(data1));
//获得总条数
/* let data2 = studentDao.getstudentsTatolNum();
data2.then(data=>console.log(data)); */
//添加学生
/* let data3 = studentDao.insertStudent({"name":"新来的","gender":"男","age":21,"classid":"60f8ca4f2edf2bfa413fb5c7"});
data3.then(data=>console.log(data)); */
//查询信息
/* let data4 = studentDao.getStudent("60f8cab52edf2bfa413fb5de")
data4.then(data=>console.log(data)); */
//修改
/* let data5 = studentDao.updateStudentInfo({"_id":"60f8cab52edf2bfa413fb5de"},{"name":"修改后的","gender":"女"});
data5.then(data=>console.log(data)); */
//删除
let data6 = studentDao.deleteStudentInfo({"_id":"60f8cab52edf2bfa413fb5de"});
data6.then(data=>console.log(data));